<?php if ($this instanceof ClassgroupDiscountController) { ?>

    <div class="form">
        <?php
        $form = $this->beginWidget('GxActiveForm', array(
            'id' => 'group-discount-form',
            'enableAjaxValidation' => false,
                ));
        ?>

        <p class="note">
            <?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
        </p>

        <?php
        echo $form->errorSummary($model);
    }
    ?>
    <div>
        <table class="renderClassForm">
            <tr>       
                <td>
                    <div class="rowLabel"><?php echo $form->labelEx($model, 'group_size'); ?>  </div>
                </td>
                <td>
                    <div class="rowLabel"><?php echo $form->labelEx($model, 'discount_in_percentage'); ?>  </div>
                </td>
                <td>
                    <div class="rowLabel"><?php echo $form->labelEx($model, 'discount_amount'); ?>  </div>
                </td>
            </tr>
            <tr>       
                <td>
                    <div class="rowControl"><?php echo $form->textField($model, 'group_size', array('class' => 'input-medium')); ?>
                        <?php echo $form->error($model, 'group_size'); ?>
                    </div>
                </td>
                <td>
                    <div class="rowControl"><?php echo $form->textField($model, 'discount_in_percentage', array('class' => 'input-medium')); ?>
                        <?php echo $form->error($model, 'discount_in_percentage'); ?>
                    </div>
                </td>
                <td>
                    <div class="rowControl"><?php echo $form->textField($model, 'discount_amount', array('class' => 'input-medium')); ?>
                        <?php echo $form->error($model, 'discount_amount'); ?>
                    </div>
                </td>
            </tr>


        </table>
<!--        <div> <a href="#" class="link-buttonadd">Add More Group Discount</a></div>-->
    </div>


    <?php if ($this instanceof ClassgroupDiscountController) { ?>
        <div class="row">
            <?php
            echo GxHtml::submitButton(Yii::t('app', 'Save'));
            $this->endWidget();
            ?>
        </div>
    </div>
    <!-- form -->
<?php } ?>
